//
//  TMNetworkManage.h
//  TMBD Movie App
//
//  Created by zhangkai on 2023/4/22.
//

#import <Foundation/Foundation.h>
#import <AFNetworking/AFNetworking.h>
NS_ASSUME_NONNULL_BEGIN
///成功
typedef void(^vcsuccess)(NSURLSessionDataTask * _Nonnull dataTask, id _Nonnull responseObject);
///失败
typedef void(^vcfailure)(NSURLSessionDataTask * _Nonnull dataTask, NSError * _Nonnull error);
///进度
typedef void(^vcprogress)(NSProgress * _Nonnull uploadProgress);

@interface TMNetworkManage : NSObject
@property (nonatomic, strong) AFHTTPSessionManager *sessionManager;
+ (instancetype)defaultManager;

///加密
- (void)MVWithApiName:(NSString * _Nullable)apiName
                    parameters:(id _Nullable)parameters
                       success:(vcsuccess)success
                       failure:(vcfailure)failure;

- (void)MVGetWithApiName:(NSString * _Nullable)apiName
                    parameters:(id _Nullable)parameters
                       success:(vcsuccess)success
                       failure:(vcfailure)failure;


- (NSString *)getencry:(NSString *)jiamiStr;
- (NSString *)getsigencry:(NSString *)jiamiStr;

@end

NS_ASSUME_NONNULL_END
